<template>
	<view class="content">
		<u-table>
			<u-tr>
				<u-td>序号</u-td>
				<u-td>事件内容</u-td>
				<u-td>来源</u-td>
				<u-td>状态</u-td>
				<u-td>操作</u-td>
			</u-tr>
			<u-tr v-for="item in EventList" >
				<u-td>{{item.id}}</u-td>
				<u-td >{{item.qualityContent}}</u-td>
				<u-td >
					<view v-if="item.source=='1'">内部查询</view>
					<view v-else>其他</view>
				</u-td>
				<u-td >
					<view v-if="item.eventStatus=='1'">处理中</view>
					<view v-else>其他</view>
				</u-td>
				<u-td >
					<button type="info" size="mini">详情</button>
					<button type="primary" size="mini">编辑</button>
				</u-td>
			</u-tr>

		</u-table>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				EventList: []
			}
		},
		onLoad() {
			this.getEventListAll()
		},
		methods: {
			getEventListAll() {
				uni.request({
					url:'http://139.9.169.87:9002/app/Event/getEventListAll',
					success:res=>{
						console.log(res)
						this.EventList=res.data.data
					}
				})
			}
		}
	}
</script>

<style lang="scss" scoped>

</style>
